import React from "react";
import { Child } from './Child'
export class Parent extends React.Component {
  state = {
    Name: 'zy'
  }
  render() {
    return (
      <div>
        <div>我是父组件，我的名字：{this.state.Name}</div>
        <div>我继承了：{this.props.money}块</div>
        <Child Name={this.state.Name} />
      </div>
    )
  }
}